package com.itheima.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.dao.CategoryDao;
import com.itheima.pojo.Category;
import com.itheima.service.CategoryService;
import org.omg.CORBA.PRIVATE_MEMBER;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * reggie-com.itheima.service.impl
 * Administrator
 * 2023-03-08
 * 16:53
 */
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryDao, Category> implements CategoryService {

    @Autowired
    private CategoryDao categoryDao;

    @Override
    public int checkSortDish(Long id) {
        int i = categoryDao.checkSortDish(id);
        return i;
    }

    @Override
    public int checkSortMeal(Long id) {
        int i = categoryDao.checkSortMeal(id);
        return i;
    }
}
